﻿using SqlSugar;

namespace BW.MesProject.WareHouse.Domain
{
    /// <summary>
    /// 实体基类
    /// </summary>
    public class BaseEntity
    {

        /// <summary>
        ///逻辑删除
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "逻辑删除")]
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        /// 创建人，可以为空
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "创建人")]
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 创建时间，默认为当前系统时间
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人，可以为空
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "更新人")]
        public string? UpdatedBy { get; set; }

        /// <summary>
        /// 更新时间，默认为当前系统时间
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "更新时间")] 
        public DateTime UpdatedTime { get; set; } = DateTime.Now;
        /// <summary>
        ///是否启用
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "是否启用")] 
        public bool IsEnable { get; set; } = true;
        ///// <summary>
        ///// 页数
        ///// </summary>
        //public int PageNum { get; set; }

        ///// <summary>
        /////单页数量
        ///// </summary>
        //public int PageSize { get; set; }

        ///// <summary>
        /////总页数
        ///// </summary>
        //public int TotalCOunt { get; set; }

    }
}
